package com.walleipt.corgi.api.listener;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

import com.walleipt.corgi.api.Application;
import com.walleipt.corgi.api.common.H2Server;

public class ContextListener implements ServletContextListener {
	
	
    @Override
    public void contextInitialized(ServletContextEvent sce) {
        Application.started();
        H2Server.started();
    }

    @Override
    public void contextDestroyed(ServletContextEvent sce) {
    	H2Server.stoped(); 
    }
}
